<?php
require_once('../../auth/auth.php');

echo("Yes I reached here!!!!!!!!!!");

	//$id = $_REQUEST['user_id'] ;
    $family_id = $_GET['family_id'];
   
    $first_name=$_POST['first_name'];    
 	$last_name=$_POST['last_name']; 
 	$gender = $_POST['gender'];   
	$age=$_POST['age'];    
	$date_of_birth=$_POST['date_of_birth']; 
	$relationship=$_POST['relationship'];
		
echo($family_id);

include 'db_Connect.php';

$member = "INSERT INTO FamilyMembers
			(family_id, first_name, last_name, gender, age, date_of_birth, relationship)
			VALUES
			('$family_id', '$first_name','$last_name', '$gender', '$age','$date_of_birth', '$relationship')";

$result = mysql_query($member);

if(!$result){
	echo("<br> Family member added failed");
}

include 'db_Close.php';

?>